package com.antdesignbackend.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_address")
public class Address {

    @TableId(value = "Id", type = IdType.AUTO)
    private Integer id;
    /**
     收件人姓名
     */
    @TableField("UserName")
    private String userName;
    /**
     收件人电话
     */
    @TableField("Phone")
    private String phone;
    /**
     地址
     */
    @TableField("Address")
    private String address;
    /**
     用户Id
     */
    @TableField("UserId")
    private Integer userId;
    /**
     地址创建时间
     */
    @TableField("CreateTime")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
